import styled from 'styled-components'
import logoImg from '../../static/img/logo.png'


export const Headerwrapper = styled.div`
    width:100%;
    height:56px;
    box-sizing:border-box;
    border-bottom:1px solid #cccccc;
`

export const NavBar = styled.div`
    min-width: 768px;
    max-width: 1440px;
    height:100%;
    box-sizing:border-box;
    margin: 0 auto;
    display:flex;
    align-items: center;
    position:relative;
`

export const Logo = styled.a.attrs({ href: '/' })`
    display:block;
    width:100px;
    height:56px;
    background:url(${logoImg});
    background-size: 100% 100%;
`

export const Container = styled.div`
    width:960px;
    height:100%;
    margin: 0 auto;
    display:flex;
    align-items:center;
    justify-content: space-between;
`
export const ContainerItem = styled.div`
    height:100%;
    display:flex;
    align-items:center;
`


export const Tab = styled.div`
    height:100%;
    display:flex;
    align-items:center;
    padding:0 15px;
    margin-right:15px;
    cursor: pointer;
    &.home{
       color:#ea6f5a
    }
    &.{
        color: #333;
    }
    .iconfont{
        margin-right:2px;
    }
`
export const SearchWrapper = styled.div`
   position:relative;
   .zomm{
       position:absolute;
       right:10px;
       top:10px;
       cursor:pointer;
       
       &.focused{
           position:absolute;
           right:10px;
           top:6px;
           border-radius:50%;
           padding:5px;
           background:#cccccc;
       }
   }
`
export const SearchInfoWrapper = styled.div`
   width:200px;
   position:absolute;
   top:50px;
   left: 0;
   box-shadow: 0 0 8px rgba(0,0,0,.2);
   padding:20px;
   background:#ffffff;
`
export const SearchInfoHeader = styled.div`
    display:flex;
    justify-content: space-between;
    padding:0;
`
export const SearchInfoTitle = styled.div`
    font-size:14px;
    color:#969696;
    display:flex;
    align-items:center;
    &.but{
    cursor:pointer;
    }
    .spin{
    display:block;
    transition: all .2s ease-in;
    transform-origin: center center;
    }
    
`
export const SearchInfoList = styled.div`
    width:100%;
    display:flex;
    flex-wrap: wrap;
    padding-top:10px;
`
export const SearchInfoItem = styled.div`
    border:1px solid #969696;
    padding: 3px 5px;
    font-size:12px;
    color:#969696;
    margin-right:5px;
    margin-bottom:5px;
    cursor:pointer;
    border-radius: 5px;
`

export const Search = styled.input.attrs({ placeholder: '搜索' })`
    width: 160px; 
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    border: 1px solid #eee;
    border-radius: 19px;
    background: #eee;
    box-sizing:border-box;
    outline: none;
    padding-right:41px;
    &.focused{
       width: 240px; 
    }
`

export const Mode = styled.div`
    width:44px;
    line-height:56px;
    text-align:center;
    margin-left:20px; 
    color: #969696;
    cursor:pointer;
`


export const ButWrapper = styled.div`
    height:100%;
    box-sizing:border-box;
    display:flex;
    align-items:center;
`
export const ButItem = styled.div`
    font-size: 15px;
    box-sizing:border-box;
    border-radius: 20px;
    margin-left:20px;
    height: 38px;
    line-height: 38px;
    text-align:center;
    cursor:pointer;
    &.sign_up{
        width: 80px;
        border: 1px solid rgba(236,97,73,.7);
        color: #ea6f5a;
    }
    &.write_btn{
        width: 100px;
        color: #fff;
        background-color: #ea6f5a;
    }
`
